﻿using UnityEngine;
using System.Collections;

public class ClientRecommendationManager : MonoBehaviour {

    GameNetworkManager gameRPC;
    
	// Use this for initialization
	void Start () {

        this.gameRPC = GameObject.FindGameObjectWithTag("GameNetworkManager").GetComponent<GameNetworkManager>();
        gameRPC.clientRecommendationManager = this;

	}
	
	// Update is called once per frame
	void Update () 
  {
    //print("Recommendation requested");
    gameRPC.ClientRequestRecommendation();
	
	}

    void OnGUI()
    {
        if (GUILayout.Button("Get Recommendation"))
        {
            print("Recommendation requested");
            gameRPC.ClientRequestRecommendation();
        }

        /// Bomani - add GUI elements for recommendation output, as needed.
    }
}
